#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

class date
{
public:
	date(int year=0, int month=1, int day=1)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void Print()
	{
		cout << _year << _month << _day << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};

int main()
{
	date d1(1, 2, 3);
	date d2 = { 1,2,3 };
	date d3 = (1,2);
	d1.Print();
	d2.Print();
	d3.Print();
	return 0;
}